package schooltg.core.persist.dao;

import schooltg.core.persist.entity.FavorPO;
import mtons.modules.persist.BaseRepository;
import mtons.modules.pojos.Paging;

import java.util.List;

public interface FavorDao extends BaseRepository<FavorPO> {
    /**
     * 指定查询
     * @param ownId
     * @param postId
     * @return
     */
    FavorPO find(long ownId, long postId);

    List<FavorPO> paingByOwnId(Paging paging, long ownId);
}
